package com.app.modules.code.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


/**
 * <p>
 * 
 * </p>
 *
 * @author MyBatisPlus
 * @since 2023-07-19
 */
@TableName("tb_sysdbconfig")

public class Sysdbconfig extends Model<Sysdbconfig> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Integer id;

    @ApiModelProperty(value = "数据源名称")
    private String dbname;

    @ApiModelProperty(value = "数据源说明")
    private String dbnote;

    @ApiModelProperty(value = "数据源类型")
    private String dbtype;

    @ApiModelProperty(value = "数据源驱动")
    private String driver;

    @ApiModelProperty(value = "数据源")
    private String url;

    @ApiModelProperty(value = "账号")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "IP地址")
    private String host;

    @ApiModelProperty(value = "端口号")
    private Integer port;

    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "创建人")
    private String createby;

    @ApiModelProperty(value = "创建时间")
    private String createtime;

    @ApiModelProperty(value = "更新人")
    private String updateby;

    @ApiModelProperty(value = "更新时间")
    private String updatetime;

    @ApiModelProperty(value = "备注")
    private String remark;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDbname() {
        return dbname;
    }

    public void setDbname(String dbname) {
        this.dbname = dbname;
    }

    public String getDbnote() {
        return dbnote;
    }

    public void setDbnote(String dbnote) {
        this.dbnote = dbnote;
    }

    public String getDbtype() {
        return dbtype;
    }

    public void setDbtype(String dbtype) {
        this.dbtype = dbtype;
    }

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCreateby() {
        return createby;
    }

    public void setCreateby(String createby) {
        this.createby = createby;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getUpdateby() {
        return updateby;
    }

    public void setUpdateby(String updateby) {
        this.updateby = updateby;
    }

    public String getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Sysdbconfig{" +
        "id=" + id +
        ", dbname=" + dbname +
        ", dbnote=" + dbnote +
        ", dbtype=" + dbtype +
        ", driver=" + driver +
        ", url=" + url +
        ", username=" + username +
        ", password=" + password +
        ", host=" + host +
        ", port=" + port +
        ", status=" + status +
        ", createby=" + createby +
        ", createtime=" + createtime +
        ", updateby=" + updateby +
        ", updatetime=" + updatetime +
        ", remark=" + remark +
        "}";
    }
}
